package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.entity.Contract;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    List<NursingVo> selectAll();

    void insert(NursingPlanDto dto);

    NursingPlan selectByName(String planName);

    Page<List<Contract>> selectByPage(@Param("name") String name, @Param("status")Integer status);
}
